// const CompressionPlugin = require("compression-webpack-plugin");
module.exports = {
    "title": "Hh Blog",
    "description": "正在努力加载中...",
    "dest": "public",
    "locales": {
        '/': {
            lang: 'zh-CN'
        }
    },
    "head": [
        [
            "link",
            {
                "rel": "icon",
                "href": "/favicon.ico"
            }
        ],
        [
            "meta",
            {
                "name": "viewport",
                "content": "width=device-width,initial-scale=1,user-scalable=no"
            }
        ]
    ],
    "theme": "reco",
    "themeConfig": {
        "mode": 'auto',
        "noFoundPageByTencent": false,
        "valineConfig": {
            appId: 'Gk5Irg0b16CY6YzpuU7z2BgB-gzGzoHsz',// your appId
            appKey: '4KMAx3BG4JTXkx5GPVINQ6kb', // your appKey
        },
        "nav": [
            {
                "text": "Home",
                "link": "/",
                "icon": "reco-home"
            },
            {
                "text": "TimeLine",
                "link": "/timeline/",
                "icon": "reco-date"
            },
            // {
            //     "text": "Docs",
            //     "icon": "reco-message",
            //     "items": [
            //         {
            //             "text": "vuepress-reco",
            //             "link": "/docs/theme-reco/"
            //         }
            //     ]
            // },
            {
                "text": "Gitee",
                "link": "https://gitee.com/tianyuhang0321",
                "icon": "reco-github"
            }
        ],
        // "sidebar": {
        //     "/docs/theme-reco/": [
        //         "",
        //         "theme",
        //         "plugin",
        //         "api"
        //     ]
        // },
        "type": "blog",
        "blogConfig": {
            // "category": {
            //     "location": 2,
            //     "text": "Category"
            // },
            "tag": {
                "location": 3,
                "text": "Tag"
            }
        },
        // "friendLink": [
        //     {
        //         "title": "午后南杂",
        //         "desc": "Enjoy when you can, and endure when you must.",
        //         "email": "1156743527@qq.com",
        //         "link": "https://www.recoluan.com"
        //     },
        //     {
        //         "title": "vuepress-theme-reco",
        //         "desc": "A simple and beautiful vuepress Blog & Doc theme.",
        //         "avatar": "https://vuepress-theme-reco.recoluan.com/icon_vuepress_reco.png",
        //         "link": "https://vuepress-theme-reco.recoluan.com"
        //     }
        // ],
        "logo": "/avatar.png",
        "search": true,
        "searchMaxSuggestions": 10,
        "lastUpdated": "Last Updated",
        "author": "杭杭",
        "authorAvatar": "/avatar.png",
        "record": "豫ICP备2021022566号",
        "startYear": "2021"
    },
    "markdown": {
        "lineNumbers": true
    },
    "plugins": [
        ["sakura", {
            num: 30,  // 默认数量
            show: true,
            zIndex: 1,
            img: {
                replace: false,  // false 默认图 true 换图 需要填写httpUrl地址
                httpUrl: 'http://www.zpzpup.com/assets/image/sakura.png'     // 绝对路径
            }
        }],
        ["ribbon-animation", {
            size: 90,   // 默认数据
            opacity: 0.3,  //  透明度
            zIndex: 1,   //  层级
            opt: {
                // 色带HSL饱和度
                colorSaturation: "80%",
                // 色带HSL亮度量
                colorBrightness: "60%",
                // 带状颜色不透明度
                colorAlpha: 0.65,
                // 在HSL颜色空间中循环显示颜色的速度有多快
                colorCycleSpeed: 6,
                // 从哪一侧开始Y轴 (top|min, middle|center, bottom|max, random)
                verticalPosition: "center",
                // 到达屏幕另一侧的速度有多快
                horizontalSpeed: 200,
                // 在任何给定时间，屏幕上会保留多少条带
                ribbonCount: 2,
                // 添加笔划以及色带填充颜色
                strokeSize: 0,
                // 通过页面滚动上的因子垂直移动色带
                parallaxAmount: -0.5,
                // 随着时间的推移，为每个功能区添加动画效果
                animateSections: true
            },
            ribbonShow: false, //  点击彩带  true显示  false为不显示
            ribbonAnimationShow: true  // 滑动彩带
        }],
        ['go-top'],
        [
            "dynamic-title",
            {
                showIcon: "/favicon.ico",
                showText: "欢迎回来 O(∩_∩)O~",
                hideIcon: "/favicon3.ico",
                hideText: "失联中。。。快回来~",
                recoverTime: 2000
            }
        ],
        [
            'vuepress-plugin-helper-live2d', {
                // 是否开启控制台日志打印(default: false)
                log: false,
                live2d: {
                    // 是否启用(关闭请设置为false)(default: true)
                    enable: true,
                    // 模型名称(default: hibiki) unitychan tsumiki shizuku nietzsche nipsilon tororo  hijiki
                    model: 'tororo',
                    display: {
                        position: "right", // 显示位置：left/right(default: 'right')
                        width: 135, // 模型的长度(default: 135)
                        height: 300, // 模型的高度(default: 300)
                        hOffset: 65, //  水平偏移(default: 65)
                        vOffset: 0, //  垂直偏移(default: 0)
                    },
                    mobile: {
                        show: false // 是否在移动设备上显示(default: false)
                    },
                    react: {
                        opacity: 1 // 模型透明度(default: 0.8)
                    }
                }
            }
        ],
        [
            "@vuepress-reco/vuepress-plugin-bgm-player", {
                audios: [
                    {
                        name: '假面舞会',
                        artist: '很美味',
                        url: '/music/假面舞会.mp3',
                        cover: 'http://p1.music.126.net/JtwwGP3ICHiecXJ1i8yPuQ==/109951166379852961.jpg?param=130y130'
                    }
                ],
                // autoplay: true
            }
        ],
        [
            "vuepress-plugin-cursor-effects",
            {
                size: 2,                    // size of the particle, default: 2
                shape: 'circle',  // shape of the particle, default: 'star'
                zIndex: 999999999           // z-index property of the canvas, default: 999999999
            }
        ]
    ],
    // configureWebpack: {
    //     plugins: [new CompressionPlugin({
    //         filename: "[path].gz", //编译后的文件名
    //         algorithm: "gzip",
    //         test: /\.js$|\.css$|\.html$/,//需要编译的文件
    //         threshold: 10240,//需要编译的文件大小
    //         minRatio: 0.8,//压缩比
    //         deleteOriginalAssets: false,//编译时是否删除源文件
    //     })]
    // }
}